from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    StockInViewSet, StockOutViewSet, StockRecordViewSet,
    StockCheckViewSet, StockTransferViewSet, StockWarningViewSet
)

router = DefaultRouter()
router.register(r'stock-in', StockInViewSet)
router.register(r'stock-out', StockOutViewSet)
router.register(r'stock-record', StockRecordViewSet)
router.register(r'stock-check', StockCheckViewSet)
router.register(r'stock-transfer', StockTransferViewSet)
router.register(r'stock-warning', StockWarningViewSet)

urlpatterns = [
    path('', include(router.urls)),
] 